<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<script
	src="${pageContext.request.contextPath}/javascript/myjavascript/jQuery-1.12.4.js"></script>

<script type="text/javascript">
	$(function() {
		var jsonData = '{"productID":1001,"product_name":"丑苹果","income_price":8888}';
		$.ajax({
			url : "jsonTest.action",
			type : "post",
			data : jsonData,
			contentType : "application/json;charset=utf-8",
			success : function(p) {
				$("input[name=productID]").val(p.productID);
				$("input[name=product_name]").val(p.product_name);
				$("input[name=income_price]").val(p.income_price);
			}
		});

	});
</script>



<body>
	<table width="50%" border="1px solid" bordercolor="white"
		cellpadding="0px">
		<tr>
			<td>产品ID</td>
			<td>产品名称</td>
			<td>产品价格</td>
		</tr>


		<tr>
			<td><input type="text" name="productID" readonly="readonly"></td>
			<td><input type="text" name="product_name"></td>
			<td><input type="text" name="income_price"></td>
		</tr>






	</table>
</body>
</html>